package com.cuif.aop.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 环绕通知
 */
public class AroundAdvice implements MethodInterceptor{

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("this time is aroundAdvice before !! 1");
		Object res = invocation.proceed();
		System.out.println("this time is aroundAdvice after !! 2");
		return res;
	}

}
